import { Entity, Column } from 'typeorm';
import { BaseEntity } from '../common/base.entity';

@Entity()
export class User extends BaseEntity {
  @Column({ comment: '用户名', unique: true })
  username: string;

  @Column({ comment: '密码' })
  password: string;

  @Column({ comment: '昵称', nullable: true })
  nickname: string;

  @Column({ comment: '手机号', nullable: true })
  phone: string;

  @Column({ comment: '头像', nullable: true })
  avatar: string;

  @Column({ comment: '状态 0-禁用 1-正常', default: 1 })
  status: number;
}
